﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="basic.aspx.cs" Inherits="Admin_basicnew" %>

<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Mosaddek">
    <meta name="keyword" content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
   

    <title>
        <%= WebUtility.GetMyName()%></title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/owl.carousel.css" type="text/css">
    <!-- Custom styles for this template -->
    <link href="css/appbase.css" rel="stylesheet">
    <link href="css/style-responsive.css" rel="stylesheet" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->

    <style type="text/css">
        ul.sidebar-menu li a {
            padding: 10px 0 10px 10px;
        }
    </style>


</head>

<body>
    <input type="hidden" runat="server" id="hfcityid" value="0" />

    <input type="hidden" runat="server" id="hfxjson" value="" />
    <input type="hidden" runat="server" id="hfyjson" value="" />

    <input type="hidden" runat="server" id="hfxjson1" value="" />
    <input type="hidden" runat="server" id="hfyjson1" value="" />

    <section id="container" class="">
        <!--header start-->
        <header class="header white-bg">
            <div class="sidebar-toggle-box">
                <div data-original-title="" data-placement="right" class="icon-reorder tooltips"></div>
            </div>
            <!--logo start-->
            <a class="logo" href="javascript:"><%= SectionProxyData.GetSetValue(2) %>
                <label id="time" style="color: Red; margin-left: 15px; font-size: 14px;">
                    60</label><label style="font-size: 14px; font-weight: normal;">秒后自动刷新</label>
                <i class="icon-refresh" title="手动刷新" onclick="loadData()" style="cursor: pointer; display: inline-block; font-size: 14px;"></i></a>
            <!--logo end-->
            <div class="nav notify-row" id="top_menu">
                <!--  notification start -->
                <ul class="nav top-menu">
                </ul>
                <!--  notification end -->
            </div>
            <div class="top-nav ">
                <!--search & user info start-->
                <ul class="nav pull-right top-menu">

                    <!-- user login dropdown start-->
                    <li class="dropdown">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">欢迎回来，
                            <span class="username" id="snUsername" runat="server">Jhon Doue</span>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu extended logout">
                            <div class="log-arrow-up"></div>

                            <li><a href="/admin/Permission/updateadmin.aspx"><i class="icon-cog"></i>编辑</a></li>

                            <li><a href="/admin/login.aspx?out=1"><i class="icon-key"></i>退出</a></li>

                            <li style="display: none;"><a href="login.aspx?out=1"><i class="icon-key"></i>退出</a></li>
                        </ul>
                    </li>
                    <!-- user login dropdown end -->
                </ul>
                <!--search & user info end-->
            </div>
        </header>
        <!--header end-->
        <!--sidebar start-->
        <aside>
            <div id="sidebar" class="nav-collapse ">
                <!-- sidebar menu start-->
                <ul class="sidebar-menu">
                    <li class="active">
                        <a class="" href="/Admin/basic.aspx">
                            <i class="icon-dashboard"></i>
                            <span>首页</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-book"></i>
                            <span>订单管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class=" level2"><a href='<%=WebUtility.GetUrl("~/admin/Shop/OrderList.aspx")%>'
                                class=""><span>订单列表</span></a></li>

                             <li class=" level2"><a href='<%=WebUtility.GetUrl("~/admin/Shop/historyOrderList.aspx")%>'
                        class=""><span>历史订单</span></a></li>


                            <li class=" level2"><a href='/Admin/Service/OrderDelive.aspx'
                                class=""><span>订单调度</span></a></li>
                            <li class="  level2"><a href="<%=WebUtility.GetUrl("~/Admin/Shop/delOrders.aspx")%>"
                                id="A1"><span>订单回收站</span></a></li>
                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/orderlog.aspx")%>'
                                class=""><span>订单状态操作日志</span></a></li>

                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/orderoploglist.aspx")%>'
                                class=""><span>订单操作日志</span></a></li>


                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/ShopReviewList.aspx")%>'
                                class=""><span>订单评论</span></a></li>



                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/orderimport.aspx")%>'
                                class=""><span>订单导入</span></a></li>


                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/ordereleimport.aspx")%>'
                                class=""><span>平台对接</span></a></li>


                             <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/Shop/OrdereleList.aspx")%>'
                                class=""><span>平台管理</span></a></li>



                           

                               <li class=" level2 last"><a href='<%=WebUtility.GetUrl("~/Admin/Service/fastaddorder.aspx")%>'
                                class=""><span>一键下单</span></a></li>


                            <li class=" level2 last"><a href='<%=WebUtility.GetUrl("~/Admin/Service/OrderCrm.aspx")%>'
                                class=""><span>客服下单</span></a></li>


                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-glass"></i>
                            <span>商家管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class="level2  "><a href="<%=WebUtility.GetUrl("~/Admin/Shop/ShopDetail.aspx")%>"
                                id="A1"><span>新增商家</span></a></li>
                            <li class="  level2"><a href="<%=WebUtility.GetUrl("~/admin/Shop/ShopList.aspx")%>"
                                id="A1"><span>商家列表</span></a></li>





                            <li class="  level2"><a href="<%=WebUtility.GetUrl("~/admin/Shop/shopdatalist.aspx")%>"
                                id="A1"><span>商家分类</span></a></li>
                            <li class="  level2"><a href="<%=WebUtility.GetUrl("~/Admin/Shop/piclist.aspx")%>"><span>商家标签</span></a></li>



                            <li class=" level1" style="display: none;"><a href='<%=WebUtility.GetUrl("~/Admin/Shop/feerule.aspx")%>'
                                class=""><span>产值对比</span></a></li>
                            <li class="last  level2"><a href="<%=WebUtility.GetUrl("~/Admin/Shop/delShopList.aspx")%>"
                                id="A1"><span>商家回收站</span></a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class=" icon-user-md"></i>
                            <span>会员管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/user/UserList.aspx")%>'
                                class=""><span>会员管理</span></a></li>

                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/user/SMSmarketing.aspx")%>'
                                class=""><span>短信营销</span></a></li>


                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/User/UserAddMoneyLog.aspx")%>'
                                class=""><span>充值记录</span></a></li>
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/User/UserDelMoneyLog.aspx")%>'
                                class=""><span>消费记录</span></a></li>
                            <li class="level1 last"><a href='<%=WebUtility.GetUrl("~/Admin/user/pointrecordlist.aspx")%>'
                                class=""><span>积分记录</span></a></li>
                        </ul>
                    </li>


                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-male"></i>
                            <span>配送员管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">

                            <li class="level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/DeliverDetail.aspx")%>'
                                class=""><span>添加配送员</span></a></li>

                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/DeliverList.aspx")%>'
                                class=""><span>配送员管理</span></a></li>


                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/DeliverGroupList.aspx")%>'
                                class=""><span>配送员群组管理</span></a></li>

                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/attendancelist.aspx")%>'
                                class=""><span>配送员考勤记录</span></a></li>

                            <li class="level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/Deliveroploglist.aspx")%>'
                                class=""><span>配送员操作日志</span></a></li>


                            <li class="level1"><a href='<%=WebUtility.GetUrl("~/admin/manage/delDeliverList.aspx")%>'
                                class=""><span>配送员回收站</span></a></li>
                            <li class="last level1"><a href='<%=WebUtility.GetUrl("~/Admin/Service/locationmonitor.aspx")%>'
                                class=""><span>查看商家配送员位置</span></a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-hand-right"></i>
                            <span>权限管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/Permission/AdminList.aspx") %>'
                                class=""><span>用户管理</span></a></li>
                            <%--<li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/Permission/Modulelist.aspx") %>'
                        class=""><span>模块管理</span></a></li>
                    <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/Permission/moduledetail.aspx") %>'
                        class=""><span>添加模块</span></a></li>--%>


                            <li class="last level1"><a href='<%=WebUtility.GetUrl("~/Admin/Permission/rolelist.aspx") %>'
                                class=""><span>角色管理</span></a></li>



                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-jpy"></i>
                            <span>财务统计</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/deliversettle.aspx") %>'
                                class=""><span>配送员收款</span></a></li>


                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/commpanycash.aspx") %>'
                                class=""><span>公司财务收款</span></a></li>



                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/UserAddMoneyLog.aspx")%>'
                                class=""><span>费用明细</span></a> </li>


                            <li class="level1"><a href='<%=WebUtility.GetUrl("~/admin/ShopData/UserAddMoneyLog.aspx?delflag=1")%>'
                                class=""><span>费用明细回收站</span></a></li>



                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/shopnosettle.aspx") %>'
                                class=""><span>未结算商家</span></a></li>


                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/shopsettle.aspx") %>'
                                class=""><span>商家对账</span></a></li>

                            <li class=" level1 " style="display: none;"><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/payoff.aspx") %>'
                                class=""><span>配送员发工资</span></a></li>


                            <li class=" last level1 "><a href='<%=WebUtility.GetUrl("~/Admin/ShopData/Deliversarly.aspx") %>'
                                class=""><span>配送员薪资结算</span></a></li>

                        </ul>
                    </li>


                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-hand-right"></i>
                            <span>数据分析</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/DeliverOutputValue.aspx")%>'
                                class=""><span>产值对比</span></a></li>
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/admin/DataAnalysis/Deliverordersum.aspx")%>'
                                class=""><span>配送员统计</span></a></li>
                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/shopordersum.aspx") %>'
                                class=""><span>商家统计</span></a></li>


                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/marketadminsum.aspx") %>'
                                class=""><span>市场部统计</span></a></li>


                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/groupordersum.aspx") %>'
                                class=""><span>分站统计</span></a></li>



                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/cityordersum.aspx") %>'
                                class=""><span>城市统计</span></a></li>



                            <li class=" level1 "><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/damageRecordSum.aspx") %>'
                                class=""><span>损单统计</span></a></li>
                            <li class=" level2 "><a href='<%=WebUtility.GetUrl("~/admin/DataAnalysis/webStatisticsYear.aspx")%>'
                                class=""><span>订单统计</span></a></li>
                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/shopTOP10.aspx")%>'
                                class=""><span>商家销量TOP10</span></a></li>

                            <li class=" level1"><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/timeorder.aspx")%>'
                                class=""><span>订单时间分布</span></a></li>
                            <li class="last level1"><a href='<%=WebUtility.GetUrl("~/Admin/DataAnalysis/ordersource.aspx")%>'
                                class=""><span>订单来源分布</span></a></li>
                        </ul>
                    </li>

                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-tasks"></i>
                            <span>物料管理</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">
                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/deviceList.aspx")%>'
                                class=""><span>物料管理</span></a> </li>

                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/inStorageorder.aspx")%>'
                                class=""><span>物料入库</span></a> </li>

                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/outStorageorder.aspx")%>'
                                class=""><span>物料出库</span></a> </li>
                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/shopdatalist_brand.aspx")%>'
                                class=""><span>物料分类管理</span></a> </li>
                            <li class="   level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/freehiftslist.aspx") %>'
                                class=""><span>物料单位管理</span></a></li>
                            <li class="last  level1"><a href='<%=WebUtility.GetUrl("~/Admin/device/devicespan.aspx")%>'
                                class=""><span>物料分布</span></a></li>
                        </ul>
                    </li>


                    <li class="sub-menu">
                        <a href="javascript:;" class="">
                            <i class="icon-cogs"></i>
                            <span>网站参数设置</span>
                            <span class="arrow"></span>
                        </a>
                        <ul class="sub">

                            <li class="   level1"><a href="<%=WebUtility.GetUrl("~/admin/manage/setweixin.aspx")%>"
                                id="A9"><span>微信公众平台帐号</span></a></li>


                            <li class="   level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/citylist.aspx") %>'
                                class=""><span>城市管理</span></a></li>

                                                <li class="   level1"><a href="<%=WebUtility.GetUrl("~/admin/manage/promotionshareconfig.aspx")%>"
                        id="A9"><span>分享促销配置</span></a></li>
                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/PptList.aspx")%>'
                                class=""><span>幻灯片管理</span></a></li>

                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/STemplatelist.aspx?id=1")%>'
                                class=""><span>商家发单备注管理</span></a> </li>

                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/sysaccounts.aspx")%>'
                                class=""><span>费用科目管理</span></a> </li>

                            <li class="  level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/webaccounts.aspx")%>'
                                class=""><span>账户管理</span></a> </li>



                            <li class="last  level1"><a href='<%=WebUtility.GetUrl("~/Admin/manage/WebBasic.aspx")%>'
                                class=""><span>系统设置</span></a></li>
                        </ul>
                    </li>




                </ul>
                <!-- sidebar menu end-->
            </div>
        </aside>
        <!--sidebar end-->
        <!--main content start-->
        <section id="main-content">
            <section class="wrapper">
                <!--state overview start-->
                <div class="row state-overview">
                    <div class="col-lg-3 col-sm-6">
                        <section class="panel">
                            <div class="symbol terques">
                                <i class="icon-user"></i>
                            </div>
                            <div class="value">
                                <h1 id="riderCount">0</h1>
                                <p>在岗骑手数 </p>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-3 col-sm-6">
                        <section class="panel">
                            <div class="symbol red">
                                <i class="icon-time"></i>
                            </div>
                            <div class="value">
                                <h1 id="timeoutCount">0</h1>
                                <p>超时单占比 </p>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-3 col-sm-6">
                        <section class="panel">
                            <div class="symbol yellow">
                                <i class="icon-signal"></i>
                            </div>
                            <div class="value">
                                <h1 id="loadCount">0</h1>
                                <p>人均负载 </p>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-3 col-sm-6">
                        <section class="panel">
                            <div class="symbol blue">
                                <i class="icon-bar-chart"></i>
                            </div>
                            <div class="value">
                                <h1 id="totalCount">0</h1>
                                <p>今日总单量</p>
                            </div>
                        </section>
                    </div>
                </div>
                <!--state overview end-->

                <div class="row" style="margin-top: 20px; background-color: #ffffff; padding-top: 10px; padding-bottom: 10px;">
                    <div class="col-lg-8" style="border-right: solid 1px #ccc;">

                        <div id="cancaschars" style="height: 400px;"></div>



                    </div>
                    <div class="col-lg-4">

                        <div id="cancaschars1" style="height: 400px;"></div>


                    </div>

                </div>

            </section>
        </section>
        <!--main content end-->
    </section>



    <!-- js placed at the end of the document so the pages load faster -->
    <script src="js/jquery.js"></script>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.scrollTo.min.js"></script>
    <script src="javascript/locationmonitor.js"></script>
    <script src="javascript/countUp.js"></script>
    <script src="js/jquery.nicescroll.js" type="text/javascript"></script>


    <script src="/Admin/javascript/echarts/echarts-all.js" type="text/javascript"></script>
    <script src="/Admin/javascript/echarts/echartsApp.js" type="text/javascript"></script>
    <script src="js/common-scripts.js"></script>


    <uc2:Foot runat="server" ID="FootUC" />
    <script type="text/javascript">
        var NearbyDelivery = [];

        var riderCount1 = $("#riderCount1");
        var timeoutCount1 = $("#timeoutCount1");
        var loadCount1 = $("#loadCount1");
        var totalCount1 = $("#totalCount1");


        $(document).ready(function () {
            riderCount1 = $("#riderCount1");
            timeoutCount1 = $("#timeoutCount1");
            loadCount1 = $("#loadCount1");
            totalCount1 = $("#totalCount1");
            delayURL();

            loadData();

            ordertimeshow();
            orderstate();
        })

        function delayURL() {
            var timebox = $("#time");
            var delay = parseInt(timebox.html());
            if (delay > 0) {
                delay--;
                timebox.html(delay + "");
            }
            else {
                loadData();
                timebox.html("60");
            }
            setTimeout(delayURL, 1000);
        }


    </script>


</body>
</html>
